Insert row into empty file...how?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Insert row into empty file...how?
# 8  
Old 12-12-2013
The touch command does not delete any files. It creates the file if it does not exist, or updates the modification timestamp otherwise.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Insert a value between two empty delimiter in the file.

Would like to insert value between two empty delimiter and at the very last too if empty. $ cat customerleft.tbl 300|Customer#000000300|I0fJfo60DRqQ|7|17-165-193-5964|8084.92|\N|p fluffily among the slyly express grouches. furiously express instruct||||||||||||||||||||||||\N... (3 Replies)
Discussion started by: Mannu2525
3 Replies

2. Shell Programming and Scripting

Insert newline when grep result is empty

Given a csv file with 40 columns with name, address, hometown etc. I use a bash command in 1 line which: 1. gets the address column and pipes that to 2. grep the first digit and everything that follows Command: awk -F ";" '{print $19}' /Users/jb/Desktop/ReorderTempTotal.csv | grep -o "\d.*"... (7 Replies)
Discussion started by: JBVeenstra
7 Replies

3. Shell Programming and Scripting

Insert empty columns inside a pipe delimited file

Hi All , I have pipe delimiter file with 11 columns . I need to insert 4 empty columns after column 10 . and After 11 column I need to insert a column which is having the same value for all the rows . My file 1|2|3|4|5|6|7|8|9|10|11 New file ... (11 Replies)
Discussion started by: Hypesslearner
11 Replies

4. Shell Programming and Scripting

Insert empty columns in a flat file

Hi, I have a tab delimited flat file, for example shown below Name Desg Loc a b c d e fI want to insert an empty column inbetween the column Desc and Loc, the result should be like shown below: Name LName Desg Loc a b c d e ... (6 Replies)
Discussion started by: sampoorna
6 Replies

5. Shell Programming and Scripting

sed - insert text if column empty

Hi, I want to insert the text 'Unknown' in 2 specific columns in a csv file (actually | separated) if the column is blank. Its always the same columns. I have tried using sed: sed "s/||/|Unknown|/g" but there are occasion where other fields are blank and they need to be left blank. This... (4 Replies)
Discussion started by: ksexton
4 Replies

6. Shell Programming and Scripting

insert text into empty file

I have an awk script to extract data from several files and create output in the following format as a csv file: xxxx 01/04/12 0001 0 When data is present, I have a file. When no data is available in the input files, I would still like to create a file that looks like this: xxxx... (1 Reply)
Discussion started by: banjo25
1 Replies

7. Shell Programming and Scripting

split row into lines and insert file name

I have a directory with several hundred files. The file format is a space delimited row with an unknown number of columns: A B C D E F G ... I need to turn this format File1 A File1 B File2 A File3 A File3 B File3 C ... I can use grep to display the filename next to each row of... (2 Replies)
Discussion started by: newreverie
2 Replies

8. Shell Programming and Scripting

How To Erase a line is a row is empty?

Hi! i've been reading you guys for some time, now there is something I couldn't find here, I'm trying to purge some data for my thesis but my measurements have some gaps in the third columns. The solution is simple, -Erase those lines where the third column is empty ¿How? example... (1 Reply)
Discussion started by: AriasFco
1 Replies

9. Shell Programming and Scripting

Sed insert text at first line of empty file

I can't seem to get sed to allow me to insert text in the first line of an empty file. I have a file.txt that is a 0 byte file. I want sed to insert " fooBar" onto the first line. I've tried a few options and nothing seems to work. They work just fine if there's text in the file tho. Help? (4 Replies)
Discussion started by: DC Slick
4 Replies

10. Shell Programming and Scripting

How to insert data befor some field in a row of data depending up on values in row

Hi I need to do some thing like "find and insert before that " in a file which contains many records. This will be clear with the following example. The original data record should be some thing like this 60119827 RTMS_LOCATION_CDR INSTANT_POSITION_QUERY 1236574686123083rtmssrv7 ... (8 Replies)
Discussion started by: aemunathan
8 Replies
Login or Register to Ask a Question
orca(1) 						      General Commands Manual							   orca(1)

NAME
orca - is a scriptable screen reader and magnifier SYNOPSIS
orca [option...] DESCRIPTION
orca is a screen reader for people with visual impairments, it provides alternative access to the desktop by using speech synthesis, braille, and magnification. In addition, orca only provides access to applications/toolkits that support the assistive technology service provide interface (AT-SPI), which include GTK, Mozilla, Firefox, Evolution, OpenOffice, StarOffice, Java/Swing, etc. WARNING: suspending orca, e.g. by pressing Control-Z, from an AT-SPI enabled shell (such as gnome-terminal), can also suspend the desktop until Orca is killed. OPTIONS
-s, --setup, --gui-setup When starting orca, bring up the GUI configuration dialog. -t, --text-setup When starting orca, initiate the text-based configuration. -n, --no-setup When starting orca, force the application to be started without configuration, even though it might have needed it. This is useful when starting orca via something like gdm. -u, --user-prefs-dir=dirname When starting orca, use dirname as an alternate directory for the user preferences. -e, --enable=speech|braille|braille-monitor|magnifier|main-window When starting orca, force the enabling of the supplied options. -d, --disable=speech|braille|braille-monitor|magnifier|main-window When starting orca, force the disabling of the supplied options. -l, --list-apps Prints the names of all the currently running applications. This is used primarily for debugging purposes to see if orca can talk to the accessibility infrastructure. Note that if orca is already running, this will not kill the other orca process. It will just list the currently running applications, and you will see orca listed twice: once for the existing orca and once for this instance. --debug Enables debug output for orca and sends all debug output to a file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in the current directory. The YYYY-MM-DD-HH:MM:SS portion will be replaced with the current date and time. --debug-file=filename Enables debug output for orca and sends all debug output to the given filename. -v, --version outputs orca version number and exits. -?, -h, --help displays orca help and exits. --replace Replace a currently running orca process. By default, if orca detects an existing orca process for the same session, it will not start a new orca process. This option will kill and cleanup after any existing orca process and then start a new orca in its place. -q, --quit Kill and cleanup after any existing Orca process. KEYBOARD SETTINGS
Orca provides two keyboard modes, Desktop and Laptop keyboard layout. The Orca_Modifier key is Insert in desktop keyboard layout and Caps_Lock in laptop keyboard layout. Orca uses default GNOME keyboard shortcuts to navigate the desktop and interact with various applications. The flat review commands provide an alternative method of interaction in certain inaccessible applications. It should not be confused with flat review functionality pro- vided by other screen readers. Desktop Mode Flat review commands Numpad-7 move the flat review cursor to the previous line and read it. Numpad-8 read the current line. Numpad-9 move the flat review cursor to the next line and read it. Numpad-4 move the flat review cursor to the previous word and read it. Numpad-5 read the current word. Numpad-6 move the flat review cursor to the next word and read it. Numpad-1 move the flat review cursor to the previous character and read it. Numpad-2 read the current character. Numpad-3 move the flat review cursor to the next character and read it. Numpad-slash perform a left mouse click at the location of the flat review cursor. Numpad-star perform a right mouse click at the location of the flat review cursor. Bookmark commands Alt+Insert+[1-6] assign a bookmark to a numbered slot. If a bookmark already exists in the slot it will be replaced with the new one. Insert+[1-6] go to the position pointed to by the bookmark bound to this numbered slot. Alt+Shift+[1-6] Insert+B and Insert+Shift+B move between the given bookmarks for the given application or page. Alt+Insert+B save the defined bookmarks for the current application or page. Miscellaneous functions Numpad+Plus 'say all' command; reads from the current position of the caret to the end of the document. Numpad+Enter 'Where am I' command; speaks information such as the title of the current application window, as well as the name of the control that cur- rently has focus. Insert+H enter into orca's 'learn mode'; press Escape to exit. Insert+Shift+Backslash toggle live regions monitoring on and off. Insert+F speak font and attribute information for the current character. Insert+Space Launch the orca Configuration dialog. Insert+Ctrl+Space reload user settings and reinitialize services as necessary. Also launches the orca Configuration dialog for the current application. Insert+S toggle speech on and off. Insert+F11 toggle the reading of tables, either by single cell or whole row. Insert+Q quit orca. Debugging Ctrl+Alt+Insert+Home report information on the currently active script. Ctrl+Alt+Insert+End print a debug listing of all known applications to the console where orca is running. Ctrl+Alt+Insert+Page_Up print debug information about the ancestry of the object with focus. Ctrl+Alt+Insert+Page_Down print debug information about the hierarchy of the application with focus. Laptop Mode Flat review commands Caps_Lock+U move the flat review cursor to the previous line and read it. Double-click to move flat review to the top of the current win- dow. Caps_Lock+I read the current line. Double-click to read the current line along with formatting and capitalization details. Caps_Lock+O move the flat review cursor to the next line and read it. Double- click to move flat review to the bottom of the current win- dow. Caps_Lock+J move the flat review cursor to the previous word and read it. Double-click to move flat review to the word above the current word. Caps_Lock+K read the current word. Double-click to spell the word. Triple-click to hear the word spelled phonetically. Caps_Lock+L move the flat review cursor to the next word and read it. Double- click to move flat review to the word below the current word. Caps_Lock+M move the flat review cursor to the previous character and read it. Double-click to move flat review to the end of the current line. Caps_Lock+Comma read the current character. Double-click to pronounce the character phonetically if it is a letter. Caps_Lock+Period move the flat review cursor to the next character and read it. Caps_Lock+7 perform a left mouse click at the location of the flat review cursor. Caps_Lock+8 perform a right mouse click at the location of the flat review cursor. Caps_Lock+8 perform a right mouse click at the location of the flat review cursor. Bookmark commands Alt+Caps_Lock+[1-6] add a bookmark to the numbered slot. If a bookmark already exists for the slot it will be replaced with the new one. Caps_Lock+[1-6] go to the position pointed to by the bookmark bound to this numbered slot. Alt+Shift+[1-6] Caps_Lock+Band Caps_Lock+Shift+B move between the given bookmarks for the given application or page. Alt+Caps_Lock+B save the defined bookmarks for the current application or page. Miscellaneous functions Caps_Lock+Semicolon Caps_Lock+Enter Caps_Lock+H enter learn mode (press Escape to exit). Caps_Lock+Shift+Backslash toggle live regions monitoring on and off. Caps_Lock+F speak font and attribute information for the current character. Caps_Lock+Space launch the orca Configuration dialog. Caps_Lock+Ctrl+Space reload user settings and reinitialize services as necessary; also launches the orca Configuration dialog for the cur- rent application. Caps_Lock+S toggle speech on and off. Caps_Lock+F11 toggle the reading of tables, either by single cell or whole row. Caps_Lock+Q quit orca. Debugging Caps_Lock+Alt+Ctrl+Home report information on the currently active script. Caps_Lock+Alt+Ctrl+End prints a debug listing of all known applications to the console where orca is running. Caps_Lock+Alt+Ctrl+Page_Up prints debug information about the ancestry of the object with focus. Caps_Lock+Alt+Ctrl+Page_Down prints debug information about the object hierarchy of the application with focus. FILES
~/.orca Orca user preferences directory ~/.orca/user-settings.py Orca user preferences configuration file. ~/.orca/orca-customizations.py Orca user customizations configuration file ~/.orca/orca-scripts Orca user orca scripts directory ~/.orca/bookmarks Orca user bookmarks directory ~/.orca/app-settings Orca user application specific settings directory AUTHOR
Orca development is a community effort led by the Sun Microsystems Inc. Accessibility Program Office and with contributions from many com- munity members. SEE ALSO
For more information please visit orca wiki at <http://live.gnome.org/Orca> <http://live.gnome.org/Orca> The orca mailing list <http://mail.gnome.org/mailman/listinfo/orca-list> To post a message to all orca list, send a email to orca- list@gnome.org GNOME
10 Nov 2008 orca(1)