10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to run a script/command on all the directories in a directory tree?
The below script is just for the files in a single directory, how to run it on all the directories in a directory tree?
#!/bin/sh
for audio_files in *.mp3
do
outfile="${audio_files%.*}.aiff"
sox "$audio_files"... (2 Replies)
Discussion started by: temp-usr
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
when I run tree command in linux box getting below image, not the line
test
âââ lost+found
âââ test1
â  âââ aaa.txt
â  âââ bbb.txt
âââ test2
3 directories, 2 files
installed tree-1.5.3-2.el6.x86_64 package (8 Replies)
Discussion started by: stew
8 Replies
3. Shell Programming and Scripting
Hope the title is close enough; didn't quite know how to put this...
OK.
We have a hypothetical script, script.a, with one simplistic line:bash ./nextDir/script.bNow script.b has a bit more going for it; and does file moves, copies, and renames, calling all the targets with respect to itself.... (7 Replies)
Discussion started by: LinQ
7 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Can any guru please help on how I can tweak the following ps command so that it only shows the lines that I wanted.
$ command ps -HAcl -F S -A f
F S UID PID PPID CLS PRI ADDR SZ WCHAN RSS PSR STIME TTY TIME CMD
4 S root 1 0 TS 24 - 2592 ? ... (3 Replies)
Discussion started by: newbie_01
3 Replies
5. Shell Programming and Scripting
Hi, I have this command:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/*\//--/g' -e 's/^/ /' -e 's/-/|/' Works nicely to show the current file structure as a tree.
I'd like to have it as an alias in '' but doesn't work just like that and I can't fix it with backslashes:
alias tree='?'
... (4 Replies)
Discussion started by: borobudur
4 Replies
6. UNIX for Dummies Questions & Answers
what's the relationship among locale, glibc, charset, charmap and fonts?
why locale needs to be generated by glibc? how?
what are in the locale-archive file?
and what are in font files? (0 Replies)
Discussion started by: vistastar
0 Replies
7. UNIX for Dummies Questions & Answers
How can i install tree command in ubundu without root ? I have found some shell script which does the same job as tree but i would like to get all the options in tree command
thanks (2 Replies)
Discussion started by: gvj
2 Replies
8. Solaris
Is there a command that displays a certain path of files in a tree just like the dos command 'tree'? (17 Replies)
Discussion started by: Bradj47
17 Replies
9. UNIX for Advanced & Expert Users
Hi,
How can I find out the charset on a Unix server (SUNOS 5.2)? I tried locale charmap and returned 646. What does 646 mean? If I send an xml file with encoding="utf-8", should the server be able to handle the file, even with special characters in it?
Thanks. (0 Replies)
Discussion started by: iengca
0 Replies
10. UNIX for Dummies Questions & Answers
In DOS, to get the complete directory structure, we use 'TREE' command..
can anyone tell me what is the equivalent command in Unix
I am using
SunOS ABC 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Fire-V240
thanks.. (1 Reply)
Discussion started by: wip_vasikaran
1 Replies
I3-MSG(1) i3 Manual I3-MSG(1)
NAME
i3-msg - send messages to i3 window manager
SYNOPSIS
i3-msg [-t type] [message]
IPC MESSAGE TYPES
command
The payload of the message is a command for i3 (like the commands you can bind to keys in the configuration file) and will be executed
directly after receiving it.
get_workspaces
Gets the current workspaces. The reply will be a JSON-encoded list of workspaces.
get_outputs
Gets the current outputs. The reply will be a JSON-encoded list of outputs (see the reply section).
get_tree
Gets the layout tree. i3 uses a tree as data structure which includes every container. The reply will be the JSON-encoded tree.
get_marks
Gets a list of marks (identifiers for containers to easily jump to them later). The reply will be a JSON-encoded list of window marks.
get_bar_config
Gets the configuration (as JSON map) of the workspace bar with the given ID. If no ID is provided, an array with all configured bar IDs
is returned instead.
DESCRIPTION
i3-msg is a sample implementation for a client using the unix socket IPC interface to i3.
EXAMPLES
# Use 1-px border for current client
i3-msg "border 1pixel"
# You can leave out the quotes
i3-msg border normal
# Dump the layout tree
i3-msg -t get_tree
ENVIRONMENT
I3SOCK
If no ipc-socket is specified on the commandline, this variable is used to determine the path, at wich the unix domain socket is expected,
on which to connect to i3.
SEE ALSO
i3(1)
AUTHOR
Michael Stapelberg and contributors
i3 4.1.2 01/01/2013 I3-MSG(1)